/**
 * @file mtlloaderprivate.h
 * @brief MtlLoaderPrivate struct definition
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3 of the License.
 *
 * @author VestniK (Sergey N.Vidyuk) sir.vestnik@gmail.com
 * @date 9 Jul 2010
 */
#ifndef MTLLOADERPRIVATE_H
#define MTLLOADERPRIVATE_H

#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QList>
#include <QtCore/QMap>

#include "mtlmaterial.h"

struct MtlLoaderPrivate
{
    MtlLoaderPrivate() {}

    QString error;
    int errorLine;

    QMap<QString, MtlMaterial> materials;
    QString currentMaterial;

    bool loadDefinition(const QString &definition);

    bool loadReflectivityElement(const QStringList &tokens);
    bool loadAlpha(const QStringList &tokens);
};

#endif

